/*
 * @Date: 2021-02-15 12:26:25
 * @LastEditors: 小枫
 * @description: 创建Vue实例
 * @LastEditTime: 2021-02-15 13:14:50
 * @FilePath: \ssr\src\app.js
 */
import Vue from 'vue'
import App from './App.vue'

import createRouter from './router/index'

export default function createApp() {
  const router = createRouter()

  const app = new Vue({
    router,
    render: h => h(App)
  }) // 这里不需要挂载到根节点，因为没有根节点

  return {app, router}
}
